package test6.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class ItineraryPage {
	public static WebElement element=null;
	
	public static WebElement itElement(WebDriver driver) {  //跳转到订单页面
		element=driver.findElement(By.xpath("//img[@alt='Itinerary Button']"));
		return element;
	}
	public static WebElement lable(WebDriver driver,String string) {  //订单列表
		element=driver.findElement(By.name(string));
		return element;
	}
	
	public static WebElement remove(WebDriver driver) {//删除订单
		element=driver.findElement(By.name("removeFlights"));
		return element;
	}
	
	public static WebElement removeall(WebDriver driver) {//删除所有订单
		element=driver.findElement(By.name("removeAllFlights"));
		return element;
	}


}
